package com.fzh.bookstore.biz.order.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author fang
 * @since 2021-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_biz_order")
@ApiModel(value="Order对象", description="")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "璁㈠崟缂栧彿")
    private String orderNo;

    @ApiModelProperty(value = "下单用户ID")
    private String userId;

    @ApiModelProperty(value = "商品总价")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "折扣金额")
    private BigDecimal deductionAmount;

    @ApiModelProperty(value = "实际付款")
    private BigDecimal actualPayment;

    @ApiModelProperty(value = "优惠券ID")
    private String couponId;

    private String status;

    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "支付时间")
    private LocalDateTime paymentTime;

    @ApiModelProperty(value = "发货时间")
    private LocalDateTime deliverTime;


}
